<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template member/header}

	<input type="hidden" id="hdErrMsg" />
	<div class="main-head">
		<span>用户中心 &gt; 账户管理 &gt; 彩种信息</span>
	</div>
	<div class="con_box">
		<div class="form-box">
			<span>
				彩种：
				<select name="gameID" data-bind="event:{change:gameEvent}" style="width:auto;">
					{loop $lottery as $val}
					<option value="{$val['id']}"{if $id == $val['id']} selected="selected"{/if}>{$val['title']}[官]</option>
					{/loop}
				</select>
			</span>
		</div>
		<div class="content" style="margin:0 20px;padding:0;">
			<div class="table-list">
				{$data['content']}
			</div>
		</div>
	</div>
	<script type="text/javascript">
		(function () {
			var viewModel = function () {
				this.showDetail = function (data, event) {
					var that = $(event.currentTarget);
					var id = that.data("id");
					if (that.data("show") == false) {
						$('#' + id).show('fast');
						that.data("show", true);
					} else {
						$('#' + id).hide('fast');
						that.data("show", false);
					}
				};
				this.gameEvent = function (data, event) {
					var element = $(event.currentTarget);
					window.location.href = '{U("member/lottery")}&id=' + element.val();
				};
			};

			$(document).ready(function () {
				var model = new viewModel();
				ko.applyBindings(model, document.getElementById("ulMain"));
			});
		})();
	</script>

    <div id="SEARCH-TIP" style="display:none;">
        <div class="mask"></div>
        <div class="popup tips-popup">
            <div class="popup-head">
                <span>提示</span>
            </div>
            <div class="popup-body">
                <p>查询中,请您耐心等待.....</p>
            </div>
        </div>
    </div>

{template member/footer}